Support Inertia v3 protocol metadata#199
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Axios / Rsbuild decisionUpstream confirmed that For this migration, we are intentionally not hiding that workaround inside So PR #199 keeps
We should revisit this before/after the next Inertia major or if the upstream docs settle on a stronger recommendation for Rsbuild/Rspack users. |
Final AfricanEngineer smokeThe local Smoke setup:
Verification:
This confirms the v3 adapter/template changes work in a real app with full request-level and browser-level coverage. |
Summary
Closes #192
This completes the stable Inertia v3 support lane for
inertia-sailsand the Boring Stack templates, including the follow-up protocol metadata work for preserved fragments and rescuable deferred props.Companion docs: sailscastshq/docs.sailscasts.com#71
What Changed
GETInertia requests using409 ConflictandX-Inertia-Location.Vary: X-Inertia.clearHistory,encryptHistory, andpreserveFragmentflags from page objects.sharedPropsmetadata.sails.inertia.preserveFragment()and session-backed consumption across redirects..rescue()/{ rescue: true }andrescuedPropsmetadata.mergeProps,prependProps,deepMergeProps, andmatchPropsOn.X-Inertia-Infinite-Scroll-Merge-Intent.inertia-sails, removed a// @ts-nocheck, and added a CI-enforcedcheck:jsgate.inertia-sails@1.4.0npm tarball.Validation
npm view inertia-sails@1.4.0 version dist.tarball dist.integrity gitHeadinertia-sails@1.4.0to the published npm integrity.npm --workspace inertia-sails run check:jsnpm --workspace inertia-sails testnpx prettier --config ./.prettierrc.js --check packages/inertia-sails/index.js packages/inertia-sails/test.js packages/inertia-sails/lib/**/*.js packages/inertia-sails/tests/**/*.jsnpx prettier --config ./.prettierrc.js --check templates/ascent-react/package-lock.json templates/ascent-vue/package-lock.json templates/mellow-react/package-lock.json templates/mellow-svelte/package-lock.json templates/mellow-vue/package-lock.jsongit diff --checkNotes
The root
jsconfig.jsonalready enablescheckJsfor editor feedback. This PR adds the repeatable package-level command and GitHub Actions workflow so the same feedback is enforced outside VS Code too.inertia-sails@1.4.0is now published to npm, and the template lockfiles have been refreshed to the published tarball integrity.